<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.area.add")} - 【妖精猫】后台</title>
<meta name="author" content="frankie" />

<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
	
	[@flash_message /]
	
	// 表单验证
	$inputForm.validate({
		rules: {
			name: {
					required: true
			},
			keyword: {
					required: true
			},
			sum: {
					required: true
			},
			platform: {
					required: true
			},
			qq: {
					required: true
			},
			from_nick: {
					required: true
			},
			commission: {
					min: 0,
					decimal: {
						integer: 12,
						fraction: ${setting.priceScale}
					}
			},
			sum: {
					min: 0,
					decimal: {
						integer: 12,
						fraction: ${setting.priceScale}
					}
			}
		}	
	});
	
});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.jhtml">${message("admin.path.index")}</a> &raquo; 增加刷单条目
	</div>
	<form id="inputForm" action="save.jhtml" method="post">
		<table class="input">
			<tr>
				<th>
					<span class="requiredField">*</span>对方小号:
				</th>
				<td>
					<input type="text" name="name" class="text" maxlength="50" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>关 键 字:
				</th>
				<td>
					<input type="text" name="keyword" class="text" maxlength="100" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>操作金额:
				</th>
				<td>
					<input type="text" name="sum" class="text" maxlength="9" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>店铺旺旺:
				</th>
				<td>
					<select name="storeId">
							<option value="1">
								贾斯特曼
							</option>
							<option value="2">
								真丶性情
							</option>
							<option value="3">
								真性情商城
							</option>
							<option value="4">
								胡佩刚
							</option>
					</select>
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>刷单平台:
				</th>
				<td>
					<input type="text" name="platform" class="text" maxlength="50" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>对 方 QQ:
				</th>
				<td>
					<input type="text" name="qq" class="text" maxlength="50" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>刷我昵称:
				</th>
				<td>
					<input type="text" name="fromNick" class="text" maxlength="50" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>放单佣金:
				</th>
				<td>
					<input type="text" name="commission" class="text" maxlength="9" />
				</td>
			</tr>
			<tr>
				<th>
					我刷昵称:
				</th>
				<td>
					<input type="text" name="toNick" class="text" maxlength="50" /><span style="color:red;">互刷填写</span>
				</td>
			</tr>
			<tr>
				<th>
					对方大号:
				</th>
				<td>
					<input type="text" name="target" class="text" maxlength="50" /><span style="color:red;">互刷填写</span>
				</td>
			</tr>
			<tr>
				<th>
					我方小号:
				</th>
				<td>
					<input type="text" name="xiaohao" class="text" maxlength="50" /><span style="color:red;">互刷填写</span>
				</td>
			</tr>
			<tr>
				<th>
					是否关注:
				</th>
				<td>
					<input type="checkbox" value="1" name="attention" class="text"/><span style="color:red;">方便收菜</span>
				</td>
			</tr>
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="确定" />
					<input type="button" class="button" value="返回" onclick="location.href='list.jhtml'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>